package mirkofrancuski.battleship.game;

import java.io.Serializable;

import mirkofrancuski.battleship.game.Board.Direction;

public class Ship implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public Cell shipCell;
	public Coordinates start;
	public Direction direction;

	public Ship(Cell shipCell, Coordinates start, Direction direction) {
		super();
		this.shipCell = shipCell;
		this.start = start;
		this.direction = direction;
	}

	public Ship(Cell ship) {
		this(ship, new Coordinates(-1, -1), Direction.HORIZONTAL);
	}
	
	public int getSize(){
		return shipCell.getSize();
	}

	@Override
	public String toString() {
		return "[" + shipCell + ", " + start
				+ ", " + direction + "]";
	}
	


}
